//
//  TouchView.h
//  CircleTest
//
//  Created by iphone user on 4/5/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#define POINT(X)	[[self.points objectAtIndex:X] CGPointValue]

@interface gestureOverlay : UIView  <UIAccelerometerDelegate>{

	NSMutableArray *points;
	CGRect circle;
	UIControl *ctrl;
	BOOL track;
	BOOL drawGesture;
	int numberOfCircles;
	float prevSlope;
	NSObject *gestureController;
	UIAccelerometer *accelerometer;
	float px;
	float py;
	float pz;
	BOOL first;
	BOOL isChange;
	float sensitivity;
	float dir;
	
}

@property (nonatomic,retain) UIAccelerometer *accelerometer;


typedef enum gestureTypes
	{
		kNoGesture,
		kLineUp,
		kLineDown,
		kLineLeft,
		kLineRight,
		kCircle,
		kCross,
		kFlipOut,
		kFlipIn
	 } GESTURES ;

@property (retain) NSMutableArray *points;
@property (retain) UIControl *ctrl;
@property (retain) NSObject *gestureController;
@property BOOL drawGesture;


-(id)initWithView:(UIView *)parent;
@end
